<?php

namespace common\traits;

/**
 * Description of Constants
 *
 * @author emhome
 */
trait QuirksModeTrait {

    /**
     * 获取当前类的所有Const常量
     * @param string $prefix 常量前缀
     * @return array
     */
    public function compatibleShopStore() {
        if ($this->os == self::OS_ANDROID && $this->build >= 52) {
            return true;
        }
        if ($this->os == self::OS_IOS && $this->build >= 3) {
            return true;
        }
        return false;
    }

}
